package co.yixiang.event;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @ClassName TemplateBean
 * @Author hupeng <610796224@qq.com>
 * @Date 2020/6/6
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class TemplateBean {
    private String templateType;
    private String orderId;
    private String time;
    private String price;
    private String deliveryName;
    private String deliveryId;
    private String payType;
    private Long uid;
    /**
     * 提现申请ID
     */
    private Long extractId;

    public static TemplateBeanBuilder builder() {
        return new TemplateBeanBuilder();
    }

    public static class TemplateBeanBuilder {
        private String templateType;
        private String orderId;
        private String time;
        private String price;
        private String deliveryName;
        private String deliveryId;
        private String payType;
        private Long uid;
        private Long extractId;

        TemplateBeanBuilder() {
        }

        public TemplateBeanBuilder templateType(String templateType) {
            this.templateType = templateType;
            return this;
        }

        public TemplateBeanBuilder orderId(String orderId) {
            this.orderId = orderId;
            return this;
        }

        public TemplateBeanBuilder time(String time) {
            this.time = time;
            return this;
        }

        public TemplateBeanBuilder price(String price) {
            this.price = price;
            return this;
        }

        public TemplateBeanBuilder deliveryName(String deliveryName) {
            this.deliveryName = deliveryName;
            return this;
        }

        public TemplateBeanBuilder deliveryId(String deliveryId) {
            this.deliveryId = deliveryId;
            return this;
        }

        public TemplateBeanBuilder payType(String payType) {
            this.payType = payType;
            return this;
        }

        public TemplateBeanBuilder uid(Long uid) {
            this.uid = uid;
            return this;
        }

        public TemplateBeanBuilder extractId(Long extractId) {
            this.extractId = extractId;
            return this;
        }

        public TemplateBean build() {
            return new TemplateBean(templateType, orderId, time, price, deliveryName, deliveryId, payType, uid, extractId);
        }

        public String toString() {
            return "TemplateBean.TemplateBeanBuilder(templateType=" + this.templateType + ", orderId=" + this.orderId + ", time=" + this.time + ", price=" + this.price + ", deliveryName=" + this.deliveryName + ", deliveryId=" + this.deliveryId + ", payType=" + this.payType + ", uid=" + this.uid + ", extractId=" + this.extractId + ")";
        }
    }
}
